Enable Disable Task Action Icon

Enable Disable Task Action

Declaration

<AMENABLETASK MANAGEDTASK="text" ENABLE="yes/no" PASSWORD="text">

See Also

Stop Task, Create Variable

Description

Use this action to enable or disable a managed task.

Practical Usage

Often used to cause either the current task, or other task(s) not to execute while the current task is executing. To do this, Disable Task could be used at the start of the task and Enable task could be placed at the end.

Parameters

General Tab

Managed Task
Text, Required
MARKUP:
a) MANAGEDTASK="Talking Clock"
b) MANAGEDTASK="Foldername\Talking Clock"
 

Specifies the name of the managed task affect. The task must exist in the current machine task list at runtime or the step will fail.  
NOTE: changing the task name or parent folder name later can break this linkage once created.

Run Password
Text, Optional
MARKUP: PASSWORD="mypassword"
 

If the task had been protected from edits, specifies the password to access the task properties.

Notes

Standard Error Handling Options
This action also includes the standard "Error Causes" and "On Error" failure handling options/tabs

More on Error Handling Options

Variables and Expressions
All text fields allow the use of expressions by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, a popup expression builder is available in all these fields by pressing F2.
More on variables...

More on expressions...

More on the expression builder...

Example

<AMENABLETASK MANAGEDTASK="Sample Tasks\change default printer">